﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Hang.Blog.Migrations
{
    public partial class alterCategory1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "ParenId",
                table: "AppCategory",
                newName: "ParentId");

            migrationBuilder.AddColumn<int>(
                name: "Depth",
                table: "AppCategory",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Depth",
                table: "AppCategory");

            migrationBuilder.RenameColumn(
                name: "ParentId",
                table: "AppCategory",
                newName: "ParenId");
        }
    }
}
